package br.ufc.ck0017.ir.tree;

import java.util.List;

public class ESEQ implements IRNode {
    public final IRNode statement;
    public final IRNode expression;

    public ESEQ(IRNode statement, IRNode expression) {
        this.statement = statement;
        this.expression = expression;
    }

    @Override
    public List<IRNode> getChildren() {
        throw new RuntimeException("getChildren() is not applicable to ESEQ.");
    }

    @Override
    public IRNode build(List<IRNode> children) {
        throw new RuntimeException("build() is not applicable to ESEQ.");
    }
}
